Release 10.1A: OpenEdge Data Management:
SQL Reference
RPAD
Pads the character string corresponding to the first argument on the right with the character string corresponding to the third argument. After the padding, the length of the result is equal to the value of the second argument
length.Syntax
Example
This example illustrates two ways to use the
RPADfunction:
Notes
- The first argument to the function must be of type
CHARACTER. The second argument to the function must be of typeINTEGER. The third argument, if specified, must be of typeCHARACTER. If the third argument is not specified, the default value is a string of length1containing one blank.- If
L1is the length of the first argument andL2is the value of the second argument:- The result is of type
CHARACTER.- If the argument expression evaluates to
NULL, the result isNULL.char_expressionandpad_expressioncan contain multi-byte characters.lengthrepresents the number of characters in the result.Compatibility
Progress extension
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |